package com.ky.pro.java.nio.http.server.filter;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName FilterManager
 * @Description TODO
 * @Date 2021/11/20 16:35
 * @Author kevin
 **/
public class FilterManager {

    public List<IGatewayInboundFilter> inboundFilter() {
        return inboundFilterList;
    }

    public void addInboundFilter(IGatewayInboundFilter inboundFilter) {
        inboundFilterList.add(inboundFilter);
    }

    public void addOutboundFilter(IGatewayOutboundFilter outboundFilter) {
        outboundFilters.add(outboundFilter);
    }

    public List<IGatewayOutboundFilter> outboundFilters() {
        return outboundFilters;
    }

    public void setOutboundFilters(List<IGatewayOutboundFilter> outboundFilters) {
        this.outboundFilters = outboundFilters;
    }

    private List<IGatewayInboundFilter> inboundFilterList = new ArrayList<>();

    private List<IGatewayOutboundFilter> outboundFilters = new ArrayList<>();


}
